Use warning module for context warning instead of invoking console.warn ...

Use warning module for context warning instead of invoking console.warn and monitorCodeUse directly.  Depends on internal change: https://phabricator.fb.com/D1695279

@sebmarkbage Is this what you had in mind?
(Someday we'll get a good linter in open-source that'll tell you these things…)