Removing useless theano function