Add a common file having useful functions for all types of architectures instead of duplicating them whenever we add a new transformer architecture.