Ruined stables will be brought back to life for new homes