Made MethodDeclaration/MainMethodDeclaration DRY