Revert "Move imports to top of module"

This reverts commit 75a594e3371208013b40d72ed8044135a863dfd8.