Move pick cell CSS class logic out of the template