Wouldn't using symbols for :error and :warning here suffice and maybe keep this lighter?