hevc: further reduce code duplication in hls_prediction_unit()