Refactored retrieval of flexible need ID.

Seems handy to have as a property on the project. Needs a little more work (see TODO).