Refactor class ConfigurationFactory.
Import Spring as provided.