Refactor magic strings and extracting actions interface