The default settings for the $facterbasepath is set to /opt/puppetlabs/facter under puppet 4.x, however all the over configs such as $confdir or $codedir are (rightly) placed under /etc/puppetlabs/* (and not /opt/puppetlabs/*).
It would be great thus to change this settings -- see Pull request #147