Improve flexibility of inline def object