DRY up action assignment