Extracts lambda to private