Converted the rest of the simple rules into individual files
Moved duplicate_key rule
Moved helper functions that were only used by one rule into their own rules