<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rollback(name, database=None, directory=None, verbose=None):
 """Rollback a migration with given name."""

    router = get_router(directory, database, verbose)
    router.rollback(name)