Consolidate ruby hooks