Moving object generator code into a separate project