Extract default setup into an extension method