Functional refactoring

this contains some code cleanup in `FunctionalTestPhaeConfigurer.groovy` removing a little bit duplication and improving readability.