def create_goodbye_message(user, guild, messageformat):
    """Formats a goodbye message."""
    return messageformat.format(
        mention=user.mention, user=user, id=user.id, server=guild.name, username=user.name,
    )