Refractor the the configuration of the application