Removed require and cleaned function

using autoload so removed require and cleaned a function in theme.