another non-used import
removed redundant import.

if ref is defined and eq the module name, we don't really need
the blessed check.
redundant substitution, given previous line