s3:registry: move reg_objects.h to registry/ and use it only where needed