Stop casting categories to models since they are static (bug 1079827)