Move paginator template to single file.