config: split availability API into separate file