Handle batch request templates when generating subject

The preview view calls this function and we need to extend it to handle
batch requests.
Merge branch 'feature/batch-requests' into develop