Make rules a plain object