Following my last question about the conditions in the parameterized parts, I was suggested to use the property form editor with which you create a questionnaire. However, I can't link either a function removal or the choice of a configuration.
I don't have enough time to experiment, but you can use a formula to remove or not delete a function from the custom properties form, but I haven't found how to drive a configuration. See this link below, it's a very well done tutorial.
Oh and another very important thing, don't forget to do a Ctrl +Q between each state, otherwise you'll be looking for a long time for the "why doesn't it work". I'm attaching an example, put the custom properties file in the right place to make it work.