Modularized the spring application context for better readability and
easier maintenance.