Remove one unnecessary layer of anonymous functions.