Refactoring index actions