Merges feature matching functions into a common one.