Externalize rules