Remove additional line and remove duplicate middleware.

Signed-off-by: crynobone <crynobone@gmail.com>