Cleaning up spring configuration.