Put flashes into mixin to remove duplication