Refactored and documented universal getter and creator functions