Your idea is a bit like defining a constant SEVEN = 7
because you want to avoid magic constants like "7" in your code. This kind of misses the point about naming such values. "DRY" shouldn't be understood as eliminating all repetition, but as ensuring that concepts in your code are defined once explicitly, not just implicitly and all over the place.
In my experience, there are two good reasons for giving something a name.
1. We might name something because it has some meaning. The name would express the "why", not the "how". For example, I assume that you have this repeated length limit of 255 chars due to security reasons or database constraints, not just because you like this number. Then give this limit a clear name. If the same limit is used in two places for different reasons, it is likely they should be using different names as well. Such code is without unnecessary repetition because each concept is defined and named once.
2. Sometimes, a pattern is repeated throughout the code base so frequently that you have to create an abstraction to simplify the code. This isn't always worth it. Every abstraction makes the overall code a bit more complex, but sometimes it can hide more complexity that it can introduce. There is also the risk that you abstract over two occurrences of a pattern that currently happen to be the same, but for entirely different reasons. If you then want to change the code only in one place, there's a risk of accidentally also affecting unrelated code that uses the same abstraction. Blind application of "DRY" can make it really really hard to maintain code in the future.
So I'd suggest being hesitant to introduce abstractions like this, unless you can give that abstraction a clear name, ideally a name from the problem domain. It can be very useful to repeat yourself a couple of times if you can't yet see which patterns are worth abstracting.