Pull the implementation of the code metrics out of the inline cost