beforeChange hooks for resources.