Actually this file needs a lot of re-factoring and after re-factoring this function will become property. For now there will be absolutely no problem in declaring this function like this as there  is no place where this function is used with argument. 
As discussed with Anton, I will send a separate PR for these re-factorings.