Refactord viewConfigurationService