Migrate old hash syntax to new ruby style