Separate domain logic from data persistence.