Only require a project when it is required