Function _get_full_source_name refactorization