Refactored model configuration to use Fluent API and configuration classes.