Refactors site structure to take user params into account (check externals, ...)