refactor: rename BeanFactory to ObjectFactory