(8) Limit or restrict any license as the department deems necessary for the protection of the public or enforcement of any law, rule, regulation, or formal order related to the licensing requirements of any program, including, but not limited to, restricting some or all services of or admissions into a program for a time certain. In taking any of the actions enumerated in this subsection, the department shall consider the seriousness of the violation, including the circumstances, extent, and gravity of the prohibited acts, and the hazard or potential hazard created to the health or safety of the public.