Factor out the code checking if a parent should override DELETE_ACCESS into a function.