validate: add remove / add clip actions

And a helper to get a layer by priority