Nick Rust, who has led British racing's governing body for the last five years, is to step down as chief executive of the British Horseracing Authority at the end of 2020.