Refactor merge strategies into separate includable file.