Modularizing and extracting actions to atomize method