Move configuration to model.