Share some tables and definitions between the encoder and decoder