Refactor friend directive for Ray