This is fine. This is the kind of code where it is easy to implement flexibility that won't be used, either because the need for flexibility won't arise or because this code will be replaced by something else.