[TASK] Use current request object in Maintenance middleware