Moved rules into their own file.