Migrate missing references of flash[:failure] and :success to helper methods