dev/core#128 Add deprecated warning helper function