Change hash pair snippet to new syntax