Is there really no way to avoid hard coding ?