Refactoring classes using symfony coding standard