Refactor class configs into a seperate package.