Encapsulate functions involved in instantiating objects