Use theme backend middleware.

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