Refactoring - extracted "create_virtualenv" function.