Treat modules and global definitions the same