Code refactoring: Params escaping in main application instead of each module