It's not hacky in any way, because it's the right approach.