Change KeyFactor context args to references.

Where context arguments are not optional and immediately dereferenced,
change them from pointers to references.

Test: Build
Bug: 171846199
Change-Id: I7481edd1944a44671e62d3fc3b4c7e73ca21eee7
1 file changed