Refactor get_info() functions