Clean up field offset initialization.

All of the field offset calculations got pulled into a new
table-driven function, initFieldOffsets().

Change-Id: Iba1e57aa1ed3b84c56fb4b0171e7d97cd9d40712
1 file changed