ROOMS-333: Move rules related hooks to specific files