Remove presentation code from model.