The former textile factory has been a St Petersburg landmark since 1841.