Refactoring initialize with ticket creation extraction