Plans to demolish a former shoe factory in Norwich and replace it with nearly 50 modern flats have been revised.