Simplify method using Object#tap.