User entity class is now configurable via factory.