Added warning to project creation and extracted method.