Bug 851145 - Refactor isPrivate method to use the method module