Is this good practice?

Others may chime in, but that sounds like a valid solution to me.