Bug 875369 - Move admin action code to admin.py, retry code to FailedTask model