Split loadSource into two functions to be able to loadDecls independently