Moved some config external to main class spring