TypeSerializer class organization