Combine timestamp and body id calculation methods and move them to utilities