Affinity partitioning of restriction endonucleases