Refactored access modifier helper functions.