Moved logic for FunctionDefinition outside Adapter.
Corrected Modifiable.
Corrected Adapter tests.
Corrected All attribute.
Merge branch 'centralize-logic-for-customized-functions'