This has been discussed before, just can't find where.
Functions in the pypeit.core modules should not have dependencies on any PypeIt-specific classes (e.g., SpecObjs). Not only does this relate to any future AstroPy integration, but it specifically causes issues when adding type hints to functions in core due to circular imports.