Replace board dependency with hardware module dependency.