Clean up flash message creation.