left_hinge: extract hinge() subroutine.