NIFI-4936 updated dependency handling pushing down delcarations where they belong This closes #2512
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #2101.