Removing static nature of HomePageFactory.java