[WIP] Refactor out fork constants

Remove globals in favor of container driven configuration. This should later move to configuration with dependency injection, instead of fetching the container everywhere.