Deprecate badly designed methods that inherently use global state

Change-Id: I2e609d81785fbae042c73aa8865e6ea3b3bcf345
Merge "Deprecate badly designed methods that inherently use global state"