The Ferdinand Building in Dudley Square is to be rebuilt.