Refactoring in methods of action class