[Shell] Moved Command creation logic to CommandSource.