Refactoring ProcessControl class and specs