I am not sure that if now is the time to reformat the code, as there are more than "OVERLAY" function that needs to be reorganized. It also includes other string functions and even more others.

Do you want me to do the whole thing or the functions only related to this ticket?