In a matter of days, two long-running Hong Kong court cases highlight just how much the semi-autonomous city is shrinking under Beijing's gaze.