Refactor the VerticleFactory to make subclasses more flexible.