Remove beforeSerialize/afterSerialize methods (no longer used).