Removed function readSharedTemplatesMiddleware.