Hygiene: Stop compile deprecation warnings

Move over to using core compile method.

See also: Ic3ed72ae1ee3393b6eddf8ce2e3bef24d2913e71
Change-Id: I8b0a56f253ba5e91fa6fd5ea1fccfcfc37cc2044
Merge "Hygiene: Stop compile deprecation warnings"