Move CommonActions code to BaseFileAction class.