[EVENTRIC-38] Move ProcessManager code into its own file