Refactoring for neuron web