Convert getFileOffset to getOffset and move it to its only user.