Replace pipe with pass where appropriate