Refactor configurations into seperate static class.