Pull config out from layout