Refactoring to simplify how permission parents are designated through foreign key relations.