Refactor: use constructor config variables to start with a snapshot rather than doing it in portal.js