Refactoring: get(id=xxx) -> get(xxx); get(name=xxx) -> get_by(name=xxx)