Cleanup: Use framework-provided method.

Change-Id: I1b62d65b0a142f64b86a475845316c5042dfc7b1