Pi Types as Right Adjoints to Reindexing in a Comprehension Category