That means that all section will have there own Ajax callback written here, but it's essentially the same code. 
Couldn't we have only ONE visibilityCallBack, taking the section ID in parameter, and in the backend a traversal from root section to find the matching one ?