Finish refactor functions to FxA object.