Move process manager to separate module