refactoring : configurer class to refactor the big port configure method