Move common codes in actions to AbstractAction class