Split up castle config