App: remove id_shift and id_mask constants