Simplify resource type finding in case of actions.