RLS - refactor hook policy processing.