Adding removeCommonePattern to S3Pattern