Fix two small typos: wrong method name, missing import.
Harmless code factoring.