extract modular parameters to own class