[IMP] config: move _deduplicate_loggers to top, hint all utility functions as internal