Move retrieval of module definition so it can run