The doctrine registry will now be taken from the Symfony container in the ScoringFunctionFactory. No need to pass it as an argument to the factory method.