This looks like code duplication?