Remove APP prefix from middleware