CC-5786: Quota Enforcement in the File Upload API

Small refactor