You can eliminate __deb_extract_metadata() if you implement the decorator suggestion.