Extracted code for computing discriminating lambda expression to a separate file.