I think bad code gives raise to more dependencies in general and so circular dependencies.
But the truth is sometimes it has happened to me and the only solution I found was creating an small module with maybe one or two functions which is not exactly ideal.