Use local context where possible.

Change-Id: Iffbddb1414bf31098d02488b269947cfee412558