Move imports from inline to top of code