Using variables for module parameter names.

I am trying to build a configuration file of default services, the service command doesn’t seem read the variables until the section is executed so I have to prefix the variables with enable/state etc. Is this expected and are there any ways around this?

Thanks
Dave