common: Move some board functions out of common.h