Installed dependency injection and associated composer packages.
Took what I had out of bagelswf and put it in a DI container.