Refactor out some code duplication in IsActionable