Why the duplication of code (from ``apicrud.py``)?