Remove use of a block wrapping a method