separating theta.hpp into theta_dry.hpp and theta_std.hpp