Move sequence comparison into separate module.