def format_message(name, message, version):
    """Message formatter to create `DeprecationWarning` messages
    such as:

        'fn' is deprecated and will be remove in future versions (1.0).
    """
    return ("'{}' is deprecated and will be remove in future versions{}. {}"
        .format(name, ' ({})'.format(version) if version else '', message))
