More cleanup of get_primitive_standard_cell.
Still more cleanup.