Remove new static escape method in favour of a closure.