LALInference: Merge likelihood functions into one common function to eliminate redundant code