Separated the common part of the setup profiles for reuse via a function.