Factor out token decoding constants and start block token serialization