It's already possible to write the code in a way that you only use boundaries, and no ranges at all. Getting and setting the selection is not something that should be done by the paste code.