Cleanups for SMLabModel.