Moved model configuration to external class.