Refactor long method createArchitecture()