Move some stuff into basic-disply-setup.js to avoid repetition