Break skin initialization into separate function