em: Pack boolean fields into flags