Refactoring ProcessControl class