Add jamespedwards42 to acknowledgments
Extract duplicated logic into applyClosureToDelegate