Not without creating a PR and submitting it to the core project.
There are feature request and WTH posts requesting a simpler method. Feel free to vote for them: